const ejs = require('ejs');
const fs = require('fs');

let html = fs.readFileSync('./ejs_条件渲染.html').toString();
let isLogin = true;
let res = ejs.render(html,{isLogin});

console.log(res);